package ooday02;

public class Person {
    String name;
    int age;
    String address;
    void eat(){
        System.out.println(this.name+"正在吃饭");
    }
    void sleep(){
        System.out.println(this.name+"正在睡觉");
    }
    void sayHi(){
        System.out.println("大家好我叫"+this.name
                +"今年"+this.age+"岁了"+"家住"+this.address);
    }
    Person(String name,int age,String address){
        this.name = name;
        this.age = age;
        this.address = address;
    }

}
